package com.baizhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

@TableName("dd_category")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Category {
    @TableId(value = "category_id",type = IdType.AUTO)
    private int categoryId;
    @TableField("parent_id")
    private int parentId;
    @TableField("category_name")
    private String categoryName;
    @TableField("count")
    private int count;
    @TableField("category_type")
    private String categoryType;
    @TableField(exist = false)
    private List<Category> categoryList;
}
